<extend name="./public/frame.html"/>
<block name="content">
	<style>
		.layui-form-label{width: 10%;}
		.layui-input-block{margin-left: 12%;}
	</style>
	<h2 style="text-align: center;">司机信息</h2>
	<form class="layui-form layui-form-pane1" method="post" >
		<input type="hidden" name="driver_id" value="{$data.driver_id}">
	
		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;">*</i>身份证</label>
			<div class="layui-input-inline">
			  <input type="text" name="driverIdCode" value="{$data.driverIdCode}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">身份证</div>
		</div>
	
		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;">*</i>完成订单数</label>
			<div class="layui-input-inline">
			  <input type="text" name="completeNum" value="{$data.completeNum}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">整数型</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;">*</i>处罚次数</label>
			<div class="layui-input-inline">
			  <input type="text" name="peccancyNum" value="{$data.peccancyNum}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">整数型</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;">*</i>服务质量信誉等级</label>
			<div class="layui-input-inline">
			  <input type="text" name="creditLevel" value="{$data.creditLevel}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">字符串 5分制度</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;">*</i>服务质量信誉考核时间</label>
			<div class="layui-input-inline">
				
			  <input type="text" name="checkDate" value="{$data.checkDate}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">yyyyMMdd</div>
		</div>



		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;">*</i>服务质量信誉考核机构</label>
			<div class="layui-input-inline">
			  <input type="text" name="checkAgency" value="{$data.checkAgency}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">字符串</div>
		</div>

		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;">*</i>信誉评价</label>
			<div class="layui-input-inline">
			  <input type="text" name="breakReason" value="{$data.breakReason}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">字符串</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;">*</i>乘客投诉次数</label>
			<div class="layui-input-inline">
			  <input type="text" name="complainNum" value="{$data.complainNum}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">整数型</div>
		</div>

		<div class="layui-form-item">
			<div class="layui-input-block">
				<button class="layui-btn" layer-submit id="submits">立即提交</button>
	
			</div>
		</div>
	</form>

	<script>
		layui.use(['laydate', 'upload','form'], function () {
			var laydate = layui.laydate
				,upload = layui.upload
				,form = layui.form
			;
			upload.render({
				elem: '#test3'//这个就等同于点击
				,url: '/admin/Upload/base64EncodeImage'
				,before: function(obj){
				
				}
				,done:  function(res){ //上传后的回调
					console.log(res)		
					if(res.status == 1){
						$("#demo3").attr('src',res.base_img);
						$("#legalIdCardPhoto").val(res.base_img);
					
					  
					}else{
						layer.msg(res.msg,{'icon':2});
					}
				},
				error: function(e){
					console.log(e)
				  //layer.msg('上传失败');
				 
				}
			}); 
		
		
		});

	</script>
</block>
